package com.studytable;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class reg
 */
public class reg extends HttpServlet {
	private static final long serialVersionUID = 1L;

    /**
     * Default constructor. 
     */
    public reg() {
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		response.setContentType("text/html");
		PrintWriter out=response.getWriter();
		out.println("<html>");
		out.println("<head>");
		out.println("</head>");
		out.println("<body>");
		out.println("<form action='control' method='GET'>");

		out.println("name:<input type='text' name='name'></br></br></br>");
		out.println("adders:<input type='text' name='address'></br></br></br>");
		out.println("age:<input type='text' name='age'></br></br></br>");
		out.println("email:<input type='text' name='email'></br></br></br>");
		out.println("birthdate:<input type='text' name='bod'></br></br></br>");
		out.println("gender:<input type='radio' name='gender' value='male'>male");
		out.println("<input type='radio' name='gender' value='female'>femal");
		out.println("<input type='submit' name='submit' value='Save'>");
		
		out.println("</form>");
		out.println("</body>");
		out.println("</html>");
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
